package com.dean.pokeking

import android.app.Application
import android.content.Context

/**
 * @ClassName TODO
 * @Description TODO
 * @Author Dean
 * @Date 2023/3/23
 * @Version 1.0
 */
class MainApplication: Application() {


    override fun onCreate() {
        super.onCreate()
        instance = this
    }

    companion object {
        lateinit var instance: MainApplication
            private set

        fun getAppContext(): Context = instance.applicationContext
    }
}